package com.agrec.client;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author Alaa Gharbawi
 *
 */
public class UserToken implements IsSerializable {

	private String token;
	private String userName;
	private String userIP;
	private String userAgent; //which browser the user is using
	//dateLastlogin
	//ipAddress
	
	
	public UserToken() {
		token(new String());
		userName(new String());
	}
	
	public UserToken(String token, String userName) {
		token(token);
		userName(userName);
	}

	//Setters and Getters
	public void token(String token) { this.token = token; }
	public String token() { return this.token; }

	public void userName(String userName) { this.userName = userName; }
	public String userName() { return this.userName; }
	
	public void userIP(String userIP) { this.userIP = userIP; }
	public String userIP() { return this.userIP; }
	
	public void userAgent(String userAgent) { this.userAgent = userAgent; }
	public String userAgent() { return this.userAgent; }

}
